package net.yondervision.hrfsp.sdk.esign.domain.request;

import cn.hutool.http.Method;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import net.yondervision.hrfsp.sdk.esign.domain.AbstractESignRequest;
import net.yondervision.hrfsp.sdk.esign.domain.ESignRequest;
import net.yondervision.hrfsp.sdk.esign.domain.request.body.IdentityAuthApiOrganizationAccountIdThreeFactorsParamBody;
import net.yondervision.hrfsp.sdk.esign.domain.request.path.IdentityAuthApiOrganizationAccountIdThreeFactorsParamPath;
import net.yondervision.hrfsp.sdk.esign.domain.response.IdentityAuthApiOrganizationAccountIdThreeFactorsResponse;

/**
 * @author Cash Zhang
 * @version v1.0
 * @since 2019/10/22 10:52
 */
@Data
@Builder
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class IdentityAuthApiOrganizationAccountIdThreeFactorsRequest extends
    AbstractESignRequest implements
    ESignRequest<IdentityAuthApiOrganizationAccountIdThreeFactorsResponse> {

  private IdentityAuthApiOrganizationAccountIdThreeFactorsParamPath identityAuthApiOrganizationAccountIdThreeFactorsParamPath;
  private IdentityAuthApiOrganizationAccountIdThreeFactorsParamBody identityAuthApiOrganizationAccountIdThreeFactorsParamBody;

  public IdentityAuthApiOrganizationAccountIdThreeFactorsRequest(
      IdentityAuthApiOrganizationAccountIdThreeFactorsParamPath identityAuthApiOrganizationAccountIdThreeFactorsParamPath,
      IdentityAuthApiOrganizationAccountIdThreeFactorsParamBody identityAuthApiOrganizationAccountIdThreeFactorsParamBody) {
    this.identityAuthApiOrganizationAccountIdThreeFactorsParamPath = identityAuthApiOrganizationAccountIdThreeFactorsParamPath;
    this.identityAuthApiOrganizationAccountIdThreeFactorsParamBody = identityAuthApiOrganizationAccountIdThreeFactorsParamBody;
    this.setParamPath(identityAuthApiOrganizationAccountIdThreeFactorsParamPath);
    this.setParamBody(identityAuthApiOrganizationAccountIdThreeFactorsParamBody);
  }

  @Override
  public String getVersion() {
    return "v2";
  }

  @Override
  public String getUrl() {
    return "/identity/auth/api/organization/{accountId}/threeFactors";
  }

  @Override
  public Method getMethodType() {
    return Method.POST;
  }

  @Override
  public Class<IdentityAuthApiOrganizationAccountIdThreeFactorsResponse> getResponseClass() {
    return IdentityAuthApiOrganizationAccountIdThreeFactorsResponse.class;
  }


}
